package com.example.javasample.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 原初
 *
 * @author Kylin
 */
@Schema(name = "原初", description = "原初对象")
@TableName("origin") // 标注对应数据库表名（可不一致）
public class Origin {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "名称")
    private String name;

    @TableLogic // 标注逻辑删除字段
    @Schema(description = "逻辑删除：0-未删除，1-已删除")
    private Integer deleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Origin(Long id, String name, Integer deleted) {
        this.id = id;
        this.name = name;
        this.deleted = deleted;
    }
}
